﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ASPNETMVCApplication.ActionServiceReference;

namespace ASPNETMVCApplication.Repositories
{
    /// <summary>
    /// Category Repository Interface.
    /// Derives from standard IRepository. No category specific members are added.  
    /// </summary>
    public interface ICategoryRepository : IRepository<Category>
    {
        List<Category> Search(DateTime dateFrom,DateTime dateTo, int firstPoint, int lastPoint, int supplierId, int trafficId, string sort, string order);
        List<Category> GetList(Criterion criterion = null);
        void Insert(Category category);
        int PostCategory(Category category);
        Category Get(int categoryId);
        int GetCount(Criterion criterion = null);
        void Update(Category t);
        void Delete(int categoryId);
    }
}
